package top.goldenyear.porpoise.framework.common.enums;

import top.goldenyear.porpoise.framework.common.util.enums.EnumUtils;

/**
 * 启用 未启用 状态枚举 @ClassName: EnableStatus
 *
 * @author airhead
 */
public enum EnableStatus {
  /** */
  TRUE("已启用", true),
  FALSE("未启用", false);

  static {
    EnumUtils.addToTvBeanMap(EnableStatus.class);
  }

  private String text;
  private Boolean value;

  private EnableStatus(String text, Boolean value) {
    this.text = text;
    this.value = value;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public Boolean getValue() {
    return value;
  }

  public void setValue(Boolean value) {
    this.value = value;
  }
}
